package com.cy.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cy.account.entity.Account;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

@Repository
public interface AccountMapper extends BaseMapper<Account> {
    //根据userId扣减金额
    void decrease(Long userId, BigDecimal money);
}
